#ifndef EDITOR_H
#define EDITOR_H

#include <QDialog>

namespace Ui {
class editor;
}

class editor : public QDialog
{
    Q_OBJECT

private:
    QString text;
    QString title;
    bool readOnly = false;

public:
    explicit editor(QWidget *parent = nullptr);
    void setText(QString );
    void setTitle(QString);
    QString getText();
    QString getTitle();
    void setReadOnly(bool);
    void readFile(bool readOnly);
    void setRow(int );
    void setPlace(QString);
    ~editor();

private slots:
    void on_cancel_clicked();

    void on_save_clicked();

    void on_edit_clicked();

private:
    Ui::editor *ui;
};

#endif // EDITOR_H
